# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-zdaemon
_pkgname=zdaemon
pkgver=5.2.1
pkgrel=1
pkgdesc='A unix python program that wraps commands to make them behave as proper daemon.'
arch=('any')
url='https://pypi.org/project/zdaemon/'
license=('ZPL')
depends=('python' 'python-zconfig')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('696e356ee82b216b4a20635e7a3545687d5cbdc3e1805297c70deaf3920438b093a19aa567781e527c7f8b23e6441b00f565d206b146a4e36481995637c325df')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

